﻿using Paperless.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.Threading.Tasks;

namespace Paperless.Repositories
{
    public class DocumentRepository : BaseRepository<Document>
    {
        public async Task<List<Document>> GetUnAssignDocument()
        { 
            using(var context = Context)
            {
                return await context.Documents.Where(x => x.IsReview == false).ToListAsync();
            }
        }
    }
}